The reuseIdentifier is used to group together similar rows in an UITableView for example rows that differ only in their content, but otherwise have similar layouts.
The reuse identifier is associated with a UITableViewCell object that the table-view’s delegate creates with the intent to reuse it as the basis (for performance reasons) for multiple rows of a table view. It is assigned to the cell object in initWithFrame:reuseIdentifier: and cannot be changed thereafter. A UITableView object maintains a queue (or list) of the currently reusable cells, each with its own reuse identifier, and makes them available to the delegate in the dequeueReusableCell(withIdentifier:) method. Apple docs for reuseidentifier.
Liked By
Write Answer
What is the reuseIdentifier used for?
Join MindStick Community
You have need login or register for voting of answers or question.
Sunil Singh
02-Jan-2017